import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

    {
      path: "/IntelligentCustomerService",
      name: "IntelligentCustomerService",
      component: () => import("../views/IntelligentCustomerService.vue"),
    },
    {
      path: "/",
      name: "LoginView",
      component: () => import("../views/ManagementSysteam/LoginView.vue"),
    },
    {
      path: "/MainView",
      name: "MainView",
      component: () => import("../views/ManagementSysteam/MainView.vue"),
      children: [
        {
          path: "/ShowView",
          name: "ShowView",
          component: () => import("../views/ManagementSysteam/ShowView.vue"),
        },
        {
          path: "/ShowRoleView",
          name: "ShowRoleView",
          component: () =>
            import("../views/ManagementSysteam/ShowRoleView.vue"),
        },
        {
          path: "/SignalRView",
          name: "SignalRView",
          component: () =>
            import("../views/ManagementSysteam/WorkOrder/SignalRView.vue"),
        },
        {
          path: "/SProductOutAllowsView",
          name: "SProductOutAllowsView",
          component: () =>
            import("../views/ManagementSysteam/WorkOrder/SProductOutAllowsView.vue"),
        },
        {
          path: "/InventoryAudit",
          name: "InventoryAudit",
          component: () =>
            import("../views/ManagementSysteam/WorkOrder/InventoryAudit.vue"),
        },

        {
          path: "/LedgerManagementSend",
          name: "LedgerManagementSend",
          component: () =>
            import("../views/ManagementSysteam/WorkOrder/LedgerManagementSend.vue"),
        },
        {
          path: "/LedAccountManagement",
          name: "LedAccountManagement",
          component: () =>
            import("../views/ManagementSysteam/WorkOrder/LedAccountManagement.vue"),
        },
        {
          path: "/LedgerManagement",
          name: "LedgerManagement",
          component: () =>
            import("../views/ManagementSysteam/WorkOrder/LedgerManagement.vue"),
        },
        {
          path: "/InventoryAuditEdit",
          name: "InventoryAuditEdit",
          component: () =>
            import("../views/ManagementSysteam/WorkOrder/InventoryAuditEdit.vue"),
          children: [
            {//可出库数据
              path: "/ProductOutAllowsView",
              name: "ProductOutAllowsView",
              component: () => import("../views/ManagementSysteam/WorkOrder/ProductOutAllowsView.vue"),
            },
            {//可出库数据
              path: "/InCentent",
              name: "InCentent",
              component: () => import("../views/ManagementSysteam/WorkOrder/InCentent.vue"),
            },
            {//可出库数据
              path: "/OutLogging",
              name: "OutLogging",
              component: () => import("../views/ManagementSysteam/WorkOrder/OutLogging.vue"),
            },
            {//可出库数据
              path: "/CenDsction",
              name: "CenDsction",
              component: () => import("../views/ManagementSysteam/WorkOrder/CenDsction.vue"),
            }
          ]
        },

        {
          path: "/DeapartMent",
          name: "DeapartMent",
          component: () => import("../views/ManagementSysteam/DeapartMent.vue"),
        },

        {
          path: "/ShowResourceView",
          name: "ShowResourceView",
          component: () => import("../views/ManagementSysteam/ShowResource.vue"),
        },


        {
          path: "/ShowResource",
          name: "ShowResource",
          component: () => import("../views/ManagementSysteam/ShowResource.vue"),
        },

        // 基础资料还差产品类别产品管理承运商
        {
          path: "/Client",
          name: "Client",
          component: () => import("../views/Basic/Client.vue"),
        },
        {
          path: "/Depot",
          name: "Depot",
          component: () => import("../views/Basic/Depot.vue"),
        },
        {
          path: "/Device",
          name: "Device",
          component: () => import("../views/Basic/Device.vue"),
        },
        {
          path: "/Location",
          name: "Location",
          component: () => import("../views/Basic/Location.vue"),
        },
        {
          path: "/Supplier",
          name: "Supplier",
          component: () => import("../views/Basic/Supplier.vue"),
        },
        {
          path: "/Inventory",
          name: "Inventory",
          component: () => import("../views/Basic/Inventory.vue"),
        },
        {
          path: "/ShowInventory",
          name: "ShowInventory",
          component: () => import("../views/InventoryIssue/ShowInventory.vue"),
        },
        {
          path: "/ShowFinancialCategory",
          name: "ShowFinancialCategory",
          component: () => import("../views/Financeinfo/ShowFinancialCategory.vue"),
        },

        {
          path: "/ShowReceivablesManagement",
          name: "ShowReceivablesManagement",
          component: () => import("../views/Financeinfo/ShowReceivablesManagement.vue"),
        },
        {
          path: "/ShowFinancialBookkeeping",
          name: "ShowFinancialBookkeeping",
          component: () => import("../views/Financeinfo/ShowFinancialBookkeeping.vue"),
        },
        {
          path: "/Unit",
          name: "Unit",
          component: () => import("../views/Basic/Unit.vue"),
        },
        {
          path: "/Category",
          name: "Category",
          component: () => import("../views/Basic/Category.vue"),
        },
        {
          path: "/Product",
          name: "Product",
          component: () => import("../views/Basic/Product.vue"),
        },
        {
          path: "/Carrier",
          name: "Carrier",
          component: () => import("../views/Basic/Carrier.vue"),
        },
        {
          path: "/Inbound",
          name: "Inbound",
          component: () => import("../views/Basic/Inbound.vue"),
        },
        
         {
          path: "/Storage",
          name: "Storage",
          component: () => import("../views/Basic/Storage.vue"),
        },
         {
          path: "/StorageAdd",
          name: "StorageAdd",
          component: () => import("../views/Basic/StorageAdd.vue"),
        },
         {
          path: "/StorageDetail",
          name: "StorageDetail",
          component: () => import("../views/Basic/StorageDetail.vue"),
        },
          {
          path: "/InboundShow",
          name: "InboundShow",
          component: () => import("../views/Basic/InboundShow.vue"),
        },
        {
          path: "/Carrier",
          name: "Carrier",
          component: () => import("../views/Basic/Carrier.vue"),
        },
        {
          path: "/InventoryAdd",
          name: "InventoryAdd",
          component: () => import("../views/Basic/InventoryAdd.vue"),
        },
        
        {
          path: "/ShowInventory",
          name: "ShowInventory",
          component: () => import("../views/InventoryIssue/ShowInventory.vue"),
        },
        {
          path: "/Showlosses",
          name: "Showlosses",
          component: () => import("../views/InventoryIssue/Showlosses.vue"),
        },
        {
          path: "/ShowPayableManagement",
          name: "ShowPayableManagement",
          component: () => import("../views/Financeinfo/ShowPayableManagement.vue"),
        },
        {
          path: "/ShowAllocation",
          name: "ShowAllocation",
          component: () => import("../views/InventoryIssue/ShowAllocation.vue"),
        },
        //出入库信息
        {
          path: "/AddStock",
          name: "AddStock",
          component: () => import("../views/Warehouse/AddStock.vue"),
        },
        {
          path: "/GetStocktaking",
          name: "GetStocktaking",
          component: () => import("../views/Warehouse/GetStocktaking.vue"),
        },
        {
          path: "/AddDelivery",
          name: "AddDelivery",
          component: () => import("../views/Warehouse/AddDelivery.vue"),
        },
        {
          path: "/AddGetStock",
          name: "AddGetStock",
          component: () => import("../views/Warehouse/AddGetStock.vue"),
        },
        {
          path: "/AddStorktaking",
          name: "AddStorktaking",
          component: () => import("../views/Warehouse/AddStorktaking.vue"),
        },
        

        //采购销售
        {
          path: "/ml",
          name: "ml",
          component: () => import("../views/PurchaseSale/ML.NET/ml.vue"),
        },
        {
          path: "/Purchase",
          name: "Purchase",
          component: () => import("../views/PurchaseSale/GetPurchase.vue"),
        },

        {
          path: "/showPurchaseRefund",
          name: "showPurchaseRefund",
          component: () =>
            import("../views/PurchaseSale/GetPurchaseRefund.vue"),
        },
        {
          path: "/showSale",
          name: "showSale",
          component: () => import("../views/PurchaseSale/GetSale.vue"),
        },
        {
          path: "/showSaleRefund",
          name: "showSaleRefund",
          component: () => import("../views/PurchaseSale/GetSaleRefund.vue"),
        },
        {
          path: "/test",
          name: "test",
          component: () => import("../views/PurchaseSale/Test.vue"),
        },
        {
          path: "/updpurchase",
          name: "updpurchase",
          component: () => import("../views/PurchaseSale/UpdPurchase.vue"),
        },
        {
          path: "/addsale",
          name: "addsale",
          component: () => import("../views/PurchaseSale/AddSale.vue"),
        },
        {
          path: "/updsale",
          name: "updsale",
          component: () => import("../views/PurchaseSale/updSale.vue"),
        },
        {
          path: "/addcheck",
          name: "addcheck",
          component: () => import("../views/PurchaseSale/Check/AddCheck.vue"),
        },
        {
          path: "/addprofitloss",
          name: "addprofitloss",
          component: () => import("../views/PurchaseSale/Check/AddProfitLoss.vue"),
        },
        {
          path: "/getcheck",
          name: "getcheck",
          component: () => import("../views/PurchaseSale/Check/GetCheck.vue"),
        },
        {
          path: "/getprofitloss",
          name: "getprofitloss",
          component: () => import("../views/PurchaseSale/Check/GetProfitLoss.vue"),
        },
        {
          path: "/getdistribute",
          name: "getdistribute",
          component: () => import("../views/PurchaseSale/Ledger/GetDistribute.vue"),
        },
        {
          path: "/getenterout",
          name: "getenterout",
          component: () => import("../views/PurchaseSale/Ledger/GetEnterout.vue"),
        },
        {
          path: "/getguarantee",
          name: "getguarantee",
          component: () => import("../views/PurchaseSale/Ledger/GetGuarantee.vue"),
        },
        {
          path: "/getstock",
          name: "getstock",
          component: () => import("../views/PurchaseSale/Ledger/GetStock.vue"),
        },
        {
          path: "/getwarn",
          name: "getwarn",
          component: () => import("../views/PurchaseSale/Ledger/GetWarn.vue"),
        },
        {
          path: "/getdify",
          name: "getdify",
          component: () => import("../views/PurchaseSale/Dify.vue"),
        },
        {
          path: "/enterout-analysis",
          name: "EnterOutAnalysis",
          component: () => import("../views/PurchaseSale/SignalR/EnterOut.vue"),
        },
        {
          path: "/signalr-test",
          name: "SignalRTest",
          component: () => import("../views/PurchaseSale/SignalR/Test.vue"),
        },
        {
          path: "/ML.NET",
          name: "ML.NET",
          component: () => import("../views/PurchaseSale/ML.NET/index.vue"),
        },
        {
          path: "/aaa",
          name: "aaa",
          component: () => import("../views/PurchaseSale/ML.NET/DataPreprocessing.vue"),
        },
        {
          path: "/bbb",
          name: "bbb",
          component: () => import("../views/PurchaseSale/ML.NET/ModelTraining.vue"),
        },
        {
          path: "/ccc",
          name: "ccc",
          component: () => import("../views/PurchaseSale/ML.NET/OutboundPrediction.vue"),
        },
        {
          path: "/StorageStock",
          name: "StorageStock",
          component: () => import("../views/InventoryIssue/ChatHub/StorageStock.vue"),
        },
        {
          path: "/OutStocking",
          name: "OutStocking",
          component: () => import("../views/InventoryIssue/ChatHub/OutStocking.vue"),
        },
        {
          path: "/StockingComparison",
          name: "StockingComparison",
          component: () => import("../views/InventoryIssue/ChatHub/StockingComparison.vue"),
        },
        {
          path: "/StockReport",
          name: "StockReport",
          component: () => import("../views/InventoryIssue/Report/StockReport.vue"),
        },
        {
          path: "/StockAllocation",
          name: "StockAllocation",
          component: () => import("../views/InventoryIssue/Report/StockAllocation.vue"),
        },
        {
          path: "/inventory-dashboard",
          name: "InventoryDashboard",
          component: () => import("../views/InventoryDashboard.vue"),
        },
        {
          path: "/inventory-dashboard",
          name: "InventoryDashboard",
          component: () => import("../views/InventoryDashboard.vue"),
        },
      ],
    },
  ],
});

export default router;
